package com.demo.spring.test.service;

public class UserService {

    private String id;

    private UserDao userDao;

    private String company;

    private String location;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public void queryUserInfo() {
        System.out.println("user:[id:" + userDao.getUser(id) + ",company:" + company + ",location:" + location+"]");
    }

}
